/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package circuit1;

/**
 *
 * @author Erik
 */
import java.awt.*;

public class WireUI implements IView{
    private Switch sw;
    private int from, to;
    
    /**
     * Konstruktor, ertekek beallitasa
     * @param e
     * @param n 
     */
    public WireUI(int f, int t){
        from = f;
        to = t;
    }
    /**
     * Az elem kirajzolasa
     * @param g 
     */
    public void draw(Graphics g){
        g.drawLine(10+(to%6)*160, 20+(to/6)*60, 75+(from%6)*160, 20+(from/6)*60);
        //int pos;
        //pos = i%2 == 0 ? i : i+10;
        //g.drawRect(5+(pos%10)*70, 0+(pos/10)*60, 45, 40);
        //g.drawString("SW", 15+(pos%10)*70, 15+(pos/10)*60);
    }
    /**
     * ID getter metodusa
     * @return 
     */
    public String getID(){
        return null;
    }
    
    /**
     * pos getter metodusa
     * @return 
     */
    public int getPos(){
        return 0;
    }
    /**
     * Esemeny hozzarendelese az elemhez
     */
    public void act(){
        
    }
}
